<template>
    <div>
        首页内容
    </div>
</template>

<script setup>
import { onMounted } from 'vue';
import {useHomeStore} from '@/stores/index'
import router from '@/router';
let store = useHomeStore()
onMounted(()=>{
    // 页面加载完成后，检查是否登录，未登录则跳转到登录界面
    if(!store.isLogin){
        router.push('/login')
    }
})
</script>

<style scoped>

</style>
